<? include ("../init.php") ?>
<?

  $username = $_POST['username'];
  $password = $_POST['password'];
  $name = $_POST['name'];
  $gender = $_POST['gender'];
  $birthday = $_POST['day']."-".$_POST['month']."-".$_POST['year'];
  $birthday = strtotime($birthday);
  $job = $_POST['job'];
  $address = $_POST['address'];
  $province = $_POST['province'];
  $country = $_POST['country'];
  $zipcode = $_POST['zipcode'];
  $groupuser = $_POST['groupuser'];
 /* $travel = $_POST['travel'];
  $google_map = $_POST['google_map'];
//  $map = $_POST['map'];
	*/
  $sql = "INSERT INTO user(username, password, name, gender, birthday, job,
          address, province, country, zipcode, groupuser) VALUES('$username', '$password', '$name',
          '$gender', '$birthday', '$job', '$address', '$province', '$country',
          '$zipcode', '$groupuser')";

  $db->execute($sql);
  header("Location:index.php");
?>